#include <cstdio>

const int mod = 1e9 + 7;
int f[100005];

int main()
{
	int n;
	scanf("%d", &n);

	f[1] = f[2] = 1;
	for(int i = 3; i <= n; i++) {
		f[i] = (f[i-1] + f[i-2]) % mod;
	}

	printf("%d\n", f[n]);

	return 0;
}